enum Direction {
  UP,
  BOTTOM,
  LEFT,
  RIGHT,
}

const d1: Direction = Direction.UP;
function turnDirection(direction: Direction) {
  switch (direction) {
    case Direction.LEFT:
      console.log("left");
      break;
    case Direction.RIGHT:
      console.log("right");
      break;
    case Direction.UP:
      console.log("up");
      break;
    case Direction.BOTTOM:
      console.log("botom");
      break;
  }
}

turnDirection(Direction.LEFT);

export {};
